<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/include/global.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/include/headqui.jsp" />
<jsp:include page="/include/popmessage.jsp" />
<title>新增用户信息</title>
</head>
<body >
<div id="scrollContent" class="border_gray">
	<div class="box2" panelTitle="新增用户" statusText="" panelWidth="800" roller="true">
	<form id="usersave" name="usersave" action="${pageContext.request.contextPath}/admin/ugr/user_create.jspa" method="post">
		<input type="hidden" name="id" value="${id}"/>
		<input type="hidden" name="user.id" value="${user.id}"/>
		<input type="hidden" name="page" value="${page}"/>
		<table class="tableStyle" useColor="false">
  <tr>
	  <th scope="row" width="20%">登录名:</th>
	  <td><input type="text" name="user.username"> </td>
    </tr>
    <tr>
	<th scope="row">用户名:</th>
	<td><input type="text" name="user.fullname" value="${user.fullname}" /> </td>
	</tr>
	<tr>
	<th scope="row">登录密码:</th>
		<td> <input type="text" name="user.password"/></td>
		</tr> 
		<tr>
		<th scope="row">确认登录密码:</th>
		<td> <input type="text" name="confirmPassword"/></td>
		</tr>  
	<tr>
      <th scope="row">联系人:</th>
      <td><input type="text" name="user.linkmen" value="${user.linkmen}" /></td>
    </tr>
	<tr>
      <th scope="row">联系电话:</th>
      <td><input type="text" name="user.phone" value="${user.phone}" /></td>
    </tr>
        <tr >
      <th scope="row">手机:</th>
      <td><input type="text" name="user.mobile" value="${user.mobile}" /></td>
    </tr>
    <tr >
	 <tr >
      <th scope="row">E-mail:</th>
      <td><input type="text" name="user.email" value="${user.email}" /></td>
    </tr>	
    <tr>
      <th scope="row">排序:</th>
      <td><input type="text" name="user.userOrder" value="${user.userOrder}" /></td>
    </tr>
    <tr>
    <th scope="row">部门:</th>
	<td> 
	<dept:select name="deptCode" value="${user.dept.code}" cssClass="default" />
	 </td>
	</tr>
	 <tr >
    
      <th scope="row">职务:</th>
      <td><input type="text" name="user.duty" value="${user.duty}"/> </td>
    </tr>
    <tr >
      <th scope="row">是否可用:</th>
      <td> <input type="text" name="enabled" value="true"></td>
    </tr>
    <tr >
      <th scope="row">角色</th>
      <td> ${rolesHtml}</td>
    </tr>	    
			 <tr style="height:50px;">
			    <td colspan="2" class="ali02" >
			   		<input type="submit" value="创建"/> &nbsp;&nbsp;
					<input type="button" value="返回"   onclick="window.location='user_browse.jspa?page=${page}'" />
			    </td>
			 </tr>        
		</table>
	</form>
	</div>
</div>
</body>
</html>